package com.cavy.platform.server.mapper;

import com.cavy.platform.server.domain.Stage;
import com.cavy.platform.server.dto.StageAddDto;
import com.cavy.platform.server.dto.StageModifyDto;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

@Mapper(uses = ContainerInfoMapper.class)
public interface StageMapper {
    StageMapper INSTANCE = Mappers.getMapper(StageMapper.class);

    Stage toDomain(StageAddDto dto);

    void toDomain(StageModifyDto dto, @MappingTarget Stage stage);
}
